package com.xzx.shop_front_api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xzx.shop_front_api.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 分类mapper
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
    @Select("SELECT id,cate_name,parent_id,sort  FROM shop_categories ORDER BY sort ASC ")
    public List<Category> selectAllCategory();
}
